import React from 'react';
import MsgItem from './MsgItem';
const MsgList = ({ list }) => {
  console.log(list)
  return (
    <div>
      {list.map(el => <MsgItem key={el.id} msg={el} />)}
    </div>
  );
}

export default MsgList;
